// try.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"

struct A {};

class DepthMap
{
public:
	DepthMap(int w, int h, A K) {};
	DepthMap(int w, int h, const A& K) {};
};

int main()
{
	A a;
	const A ca;
	DepthMap(1,1,a);
	DepthMap(1,1,ca);
}

// There is a error in this example.
// THe example tells us to do more exercise.
// compile Failed！
// error: call of overloaded 'DepthMap(int, int, A&)' is ambiguous DepthMap(1,1,a);
// error: call of overloaded 'DepthMap(int, int, const A&)' is ambiguous DepthMap(1,1,ca);
